<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/23/023
 * Time: 14:36
 */

namespace app\api\controller\v1;

use app\api\controller\BaseController;
use app\api\validate\AdminValidate;

class Admin extends BaseController {
    /**
     * 创建或更新管理员
     * @return \think\response\View
     */
    public function createOrUpdateAdmin() {
        $login_validate = new AdminValidate();
        // 验证参数
        $login_validate->goCheck();
        // 根据验证规则获取参数
        $params = $login_validate->getDataByRule(input('post.'));

    }
}